﻿using SelfManagement.Data.Constant;
using System.ComponentModel.DataAnnotations;

namespace SelfManagement.Site.Models.Session
{
    public class LoginModel
    {
        [Required]
        [Display(Name = "用户名")]
        [RegularExpression(pattern: ValidationConstant.UserNameValReg, ErrorMessage = ValidationConstant.UserNameValMessage)]
        public string UserName { get; set; }

        [Required]
        [Display(Name = "密码")]
        [RegularExpression(pattern: ValidationConstant.PasswordValReg, ErrorMessage = ValidationConstant.PasswordValMessage)]
        public string Password { get; set; }

        [Display(Name = "记住我?")]
        public bool RememberMe { get; set; }
    }
}
